package sso;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
/**
 * 资源服务器的启动类
 */

@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true) //开启权限访问（有权限才能访问，无则不能访问）
public class ResApplication {
    public static void main(String[] args) {
        SpringApplication.run(ResApplication.class, args);
    }
}
